//
//  YSGHelpCenterNavBarView.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/11/18.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class YSGHelpCenterNavBarView: UIView {
    
    var handleClosure: ((Bool) -> Void)?

    @IBOutlet private weak var searchView: UIView! {
        didSet {
            searchView.layer.cornerRadius = searchView.height / 2
            searchView.clipsToBounds = true
            
            let tap = UITapGestureRecognizer(target: self, action: #selector(searchQuestion))
            searchView.addGestureRecognizer(tap)
        }
    }
    
    @objc private func searchQuestion() {
        handleClosure?(false)
    }
    
    @IBAction private func backAction() {
        handleClosure?(true)
    }
}
